package cn.baimo.service.serviceImpl;

import cn.baimo.mapper.HospitalMapper;
import cn.baimo.pojo.Hospital;
import cn.baimo.service.HospitalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HospitalServiceImpl implements HospitalService {
    @Autowired
    private HospitalMapper hospitalMapper;
    @Override
    public List<Hospital> selectHotHospitals() {
        return hospitalMapper.selectHotHospitals();
    }

    @Override
    public List<Hospital> selectHospitalsSix() {
        return hospitalMapper.selectHospitalsSix();
    }

    @Override
    public int selectHospitalTotalNum() {
        return hospitalMapper.selectHospitalTotalNum();
    }

    @Override
    public List<Hospital> selectHospitals(Hospital hospital,String order) {
        return hospitalMapper.selectHospitals(hospital,order);
    }

    @Override
    public Hospital selectHospitalByHospitalId(int id) {
        return hospitalMapper.selectHospitalByHospitalId(id);
    }
}
